package com.oreilly.ez.repo;

import com.oreilly.ez.entity.WalleItem;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;


public interface WalleItemRepo extends JpaRepository<WalleItem, Integer>{



    @Query(value = "select * from Walle_Item  where card_id = :cardId", nativeQuery = true)
    List<WalleItem> findAllByWalleCard(@Param("cardId") Integer cardId);
}
